package com.online.college.core.message.dao;

import com.online.college.common.page.TailPage;
import com.online.college.core.message.domain.MessageText;

import java.util.List;


public interface MessageTextDao {

	/**
	*根据MessageId获取
	**/
	public MessageText getByMessageId(Long messageId);

	/**
	 *获取总数量
	 **/
	public Integer getMessageCount(Long userId);

	/**
	 *根据用户ID分页获取
	 **/
	public List<MessageText> queryListByUserId(Long userId , TailPage<MessageText> page);

	/**
	 *创建新记录
	 **/
	public void createSelectivity(MessageText entity);

	/**
	 *创建新记录
	 **/
	public void updateSelectivity(MessageText entity);

}

